package structure.bridging;

/**
 * @author lzp
 * @Date:2023/2/24
 * @description: 抽象车类，把引擎作为属性组合在了车里
 */
public abstract class Car {

	protected Engine engine;

	public Car(Engine engine) {
		this.engine = engine;
	}

	/**
	 * 驾驶方法
	 */
	public abstract void drive();

}
